package com.yuxi.mq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.stereotype.Service;


@Service
public class MQProduceService {
    @Autowired
    private JmsTemplate j1;

    public void send(String msg) {//向指定队列中发送消息
        this.j1.convertAndSend(msg);
    }
}
